from langchain_huggingface import HuggingFaceEmbeddings

embeding = HuggingFaceEmbeddings(show_progress=True,
                                 model="sentence-transformers/all-MiniLM-L6-v2",
                                cache_folder="./embedding_cache")

query_vector = embeding.embed_query("你好我是博小睿， 喜欢篮球")
print(query_vector)
print(len(query_vector))